package es.cazadoresmadridejos.beans.manager.biggameassistance.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import es.cazadoresmadridejos.beans.dao.biggameassistance.BigGameAssistanceDao;
import es.cazadoresmadridejos.beans.manager.biggameassistance.BigGameAssistanceManager;
import es.cazadoresmadridejos.common.bean.dao.Dao;
import es.cazadoresmadridejos.common.bean.manager.impl.ManagerImpl;
import es.cazadoresmadridejos.model.BigGameAssistance;

@Service
public class BigGameAssistanceManagerImpl extends ManagerImpl<BigGameAssistance> 
	implements BigGameAssistanceManager{

	@Autowired 
	public void setDao(@Qualifier("bigGameAssistanceDao")
	Dao<BigGameAssistance> dao) {
		this.dao = dao;
	}

	@Override
	public List<BigGameAssistance> findAllByBigGame(Long id) {
		return ((BigGameAssistanceDao)dao).findAllByBigGame(id);
	}

}
